<?php
/**
 * Implementation of internal request shema "file:"
 * @package WFilesystem
 */
require_once 'WKernel/IRequest/Abstract.php';
class WFs_IRequest_file extends WK_IRequest_Abstract {
	protected function __run(){
		$content = WFs::getContent($this->querystr);
		$this->status = self::STATUS_OK;
		$this->result = new WK_Data_Map();
		$this->result->newValue('content', $content);
	}
}
WK_App::registerUriSchema('file', 'WFs_IRequest_file');